package com.buka.recipe.system.service;

import com.buka.recipe.system.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface UserService extends UserDetailsService {

    void save(User user);

    void delete(User user);

    User getUserById(Integer id);

    User getUserByUsername(String username);

    User getUserByOpenid(String openId);

    Page<User> getAll(String username, String name, String phone, Boolean enabled, Integer current, Integer pageSize);

}
